package main

import(
	"fmt"
)


type AInterface interface{
	Say()
}

type BInterface interface{
	Hello()
}

type Stu struct{
	Name string
}

func (stu Stu)Say(){
	fmt.Printf("Say hello :%v \n",stu.Name)
}

type integer int
func (i integer) Say(){
	fmt.Println("integer say i=",i)
}

func (i integer) Hello(){
	fmt.Println("integer hello i=",i)
}


func main(){
	var stu Stu = Stu{"jack"} // 结构体变量
	var a  AInterface = stu
	a.Say()

	var i integer = 10
	var b AInterface = i
	b.Say()
	var c BInterface = i
	c.Hello()

}